<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>万能页面</title>
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
</head>
<body>
    <form>
        账号：<input type="text" placeholder="${user.name!''}" id="name"><br>
        密码：<input type="text" placeholder="${user.pwd!''}" id="pwd"><br>
        手机：<input type="text" placeholder="${user.phone!''}" id="phone"><br>
        <#--<#if user.name!=null>-->
            <#--注册：<input type="button" class="btn" id="register">-->
       <input type="button" class="btn" id="revise" value="提交">
        <#--</#if>-->

    </form>
<script>
    $(document).ready(function(){
      $("#revise").on("click",function () {
          var name = $("#name").val();
          var pwd =$("#pwd").val();
          var phone =$("#phone").val();
          $.ajax({
              type:'post',
              url:'/success/revise',
              data:{"name":name,"pwd":pwd,"phone":phone},
              success:function () {
                  window.location.href="/success/index";
              }
          })
      })
    })
</script>
</body>
</html>